package com.sy.service.impl;

import java.util.List;

import org.springside.core.dao.Page;

import com.sy.dao.ISTestDao;
import com.sy.model.STest;
import com.sy.service.ISTestService;

public class STestService implements ISTestService {

	private ISTestDao dao;
	@Override
	public List<STest> getAllStest(int start,int pageSize) {
		return dao.getAllStest(start,pageSize);
	}
	@Override
	public int count() {
		return dao.queryCount();
	}
	@Override
	public STest getSTest(String id) {
		// TODO Auto-generated method stub
		return dao.getSTest(id);
	}
	@Override
	public void saveSTest(STest st) {
		// TODO Auto-generated method stub
		dao.saveSTest(st);
	}
	@Override
	public void deleteSTest(String id) {
		// TODO Auto-generated method stub
		dao.deleteSTest(id);
	}
	@Override
	public void updateSTest(STest st) {
		// TODO Auto-generated method stub
		dao.updateSTest(st);
	}
	@Override
	public Page getAllStestByVal(int start, int pageSize, Object[] val) {
		// TODO Auto-generated method stub
		return dao.getAllStestByVal(start, pageSize,val);
	}

	public ISTestDao getDao() {
		return dao;
	}
	public void setDao(ISTestDao dao) {
		this.dao = dao;
	}
}
